<?php

class sfMyCapatchaRouting
{
  /**
   * Listens to the routing.load_configuration event.
   *
   * @param sfEvent An sfEvent instance
   */
  static public function listenToRoutingLoadConfigurationEvent(sfEvent $event)
  {
    $r = $event->getSubject();

    // preprend our routes
    $r->prependRoute('securimage_show', new sfRoute('/capatcha.jpeg', array('module' => 'myCapatcha', 'action' => 'show_image')));
    $r->prependRoute('securimage_play', new sfRoute('/capatcha.wav', array('module' => 'myCapatcha', 'action' => 'play_sound')));
  }

}
